export const param2Obj = url => {
    //http://localhost:8080/gethome?keyword=%09+%E9%9F%A9%E8%8A%B3
    const search = url.split('?')[1] 
    if (!search) {
      return {}
    }
    return JSON.parse('{"' + decodeURIComponent(search)
    .replace(/"/g, '\\"')
    .replace(/&/g, '","')
    .replace(/=/g, '":"') + '"}')
 }